﻿using System;
using System.Collections.Generic;
using System.Text;
using Tauren.Business.Entity.Global;
using Tauren.Business.Entity.Model;
using Tauren.Business.Entity.Output;

namespace Tauren.Business.DLL.FieldsDLL
{
    public interface IFieldBusiness:Base.IBaseDLL
    {
        /// <summary>
        /// 分页获取信息
        /// </summary>
        /// <param name="queryModel"></param>
        /// <param name="Total"></param>
        /// <returns></returns>
        List<PageFieldsTable> Pages(QueryModel queryModel, out long Total);

        /// <summary>
        /// 判断编码是否重复
        /// </summary>
        /// <param name="AutoId"></param>
        /// <param name="PerCode"></param>
        /// <returns></returns>
        bool IsPermissionCodeRepeat(long AutoId, string Code,string tableCode);

        /// <summary>
        /// 获取序号
        /// </summary>
        /// <returns></returns>
        decimal GetSeq();

        /// <summary>
        /// 创建数据库表
        /// </summary>
        /// <param name="info"></param>
        /// <returns></returns>
        bool CreateField(Fields field);

        /// <summary>
        /// 修改字段
        /// </summary>
        /// <param name="field"></param>
        /// <returns></returns>
        bool EditField(Fields field);
    }
}
